package com.qxf.sell.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.qxf.sell.model.UserInfo;

import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author qxf
 * @since 2021-04-30
 */
public interface IUserInfoService extends IService<UserInfo> {
    List<UserInfo> findAllUser();

    IPage<UserInfo> getUserByPage(IPage<UserInfo> page, QueryWrapper<UserInfo> wrapper);

    int register(String name, int age, String password);

    boolean isUserExist(String name);

    boolean login(String name,String password);
}
